package com.iot.ammeter.dto.web.campus;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName: BuildingDTO
 * @Author: Basil
 * @Date: 2021/10/15 下午3:47
 * @Version: 1.0
 * @Description: 楼栋信息数据传输对象
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BuildingDTO {
    /**
     * 楼栋id
     */
    @ExcelIgnore
    private String buildingId;
    /**
     * 楼栋名称
     */
    @ExcelProperty(value = "楼栋名称", index = 2)
    @ColumnWidth(60)
    private String buildingName;
    /**
     * 校区
     */
    @ExcelIgnore
    private String campusId;
    /**
     * 校区名称
     */
    @ExcelProperty(value = "校区名称", index = 1)
    @ColumnWidth(60)
    private String campusName;
    /**
     * 学校名称
     */
    @ExcelProperty(value = "学校名称", index = 0)
    @ColumnWidth(60)
    private String schoolName;
    /**
     * 备注
     */
    @ExcelProperty(value = "备注", index = 3)
    @ColumnWidth(60)
    private String remark;
    /**
     * 批量添加时，传入的楼栋名称集合
     */
    @ExcelIgnore
    private List<String> buildingNames;
}
